package com.fastCms.business.mall.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fastCms.business.mall.pojo.entity.ProductSpec;
import com.fastCms.business.mall.pojo.po.ProductQuerySpecPO;
import com.fastCms.business.mall.pojo.vo.ProductSpecVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 商品规格 Mapper 接口
 * </p>
 *
 * @author lsquan
 * @since 2019-05-20
 */
@Repository
public interface ProductSpecMapper extends BaseMapper<ProductSpec> {

    List<ProductSpecVO> findProductSpecList(ProductQuerySpecPO queryProductSpecPO);

    List<ProductSpecVO> findProductSpecListByCategoryId(@Param("categoryId") String categoryId);

    List<ProductSpecVO> findProductSpecListByCategoryIds(List<String> categoryIds);
}
